package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IUserService {

    User selectUserByEmailAndPassword(String email, String password);

    void save(User user);

    void register(User user);

    User login(String email, String password);

    /**
     * 高级查询
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);

    void updateInfo(User user);

    User get(Long id);

    void insertRelationWithTravelId(Long userId, Long travelId,Long status);

    void insertRelationWithStrategyId(Long userId, Long strategyId,Long status);

    void deleteRelationWithTravelId(Long userId, Long travelId);

    void deleteRelationWithStrategyId(Long userId, Long strategyId);

    void insertRelationWithDailyId(Long userId, Long dailyId, Long status);

    void deleteRelationWithDailyId(Long userId, Long dailyId);
    User checkHead(String email);
}
